package com.wh.wisdomsite.xbox.du.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 扬尘设备项目检测点配置entity
 * @author 刘旭
 * @version V1.0
 * @Package com.wh.wisdomsite.xbox.du.entity
 * @date 2018年08月03日 16:09
 * @Copyright 企业版权所有
 * @Company 贵州万华科技有限公司CopyRight (c) 2018
 */
@TableName("du_dustProCheckPoint")
public class DustProCheckPoint extends Model<DustProCheckPoint> {

    /**
     * 扬尘设备项目配置ID
     */
    @TableId(type = IdType.UUID)
    private String dpcpId;

    /**
     * 项目ID
     */
    @TableField("prId")
    private String prId;

    /**
     * 扬尘设备项目检测点名称
     */
    @TableField("dpcpName")
    private String dpcpName;

    /**
     * 设备编号
     */
    @TableField("deviceId")
    private String deviceId;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 负责人
     */
    @TableField("principal")
    private String principal;

    /**
     * 负责人电话
     */
    @TableField("principalTel")
    private String principalTel;

    /**
     * 布点位置
     */
    @TableField("distributLoc")
    private String distributLoc;

    /**
     * 布点经度
     */
    @TableField("longitude")
    private Double longitude;

    /**
     * 布点纬度
     */
    @TableField("latitude")
    private Double latitude;

    /**
     * 三方数据链接
     */
    @TableField("dataUrl")
    private String dataUrl;

    /**
     * 在线状态,1:在线 2:离线
     */
    @TableField("onLineStatus")
    private Integer onLineStatus;

    /**
     * 创建者
     */
    @TableField("createBy")
    private String createBy;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @TableField("createDate")
    private Date createDate;

    /**
     * 更新者
     */
    @TableField("updateBy")
    private String updateBy;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @TableField("updateDate")
    private Date updateDate;

    /**
     * 数据状态 1:正常 2:已删除
     */
    @TableField("dataState")
    private String dataState;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    public String getDpcpId() {
        return dpcpId;
    }

    public void setDpcpId(String dpcpId) {
        this.dpcpId = dpcpId;
    }

    public String getPrId() {
        return prId;
    }

    public void setPrId(String prId) {
        this.prId = prId;
    }

    public String getDpcpName() {
        return dpcpName;
    }

    public void setDpcpName(String dpcpName) {
        this.dpcpName = dpcpName;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getPrincipalTel() {
        return principalTel;
    }

    public void setPrincipalTel(String principalTel) {
        this.principalTel = principalTel;
    }

    public String getDistributLoc() {
        return distributLoc;
    }

    public void setDistributLoc(String distributLoc) {
        this.distributLoc = distributLoc;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public String getDataUrl() {
        return dataUrl;
    }

    public void setDataUrl(String dataUrl) {
        this.dataUrl = dataUrl;
    }

    public Integer getOnLineStatus() {
        return onLineStatus;
    }

    public void setOnLineStatus(Integer onLineStatus) {
        this.onLineStatus = onLineStatus;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getDataState() {
        return dataState;
    }

    public void setDataState(String dataState) {
        this.dataState = dataState;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    @Override
    protected Serializable pkVal() {
        return dpcpId;
    }
}
